/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac2.client;

/**
 *
 * @author Korso
 */
public class PntlBajaGrupo extends javax.swing.JFrame {

    /**
     * Creates new form PntlBajaGrupo
     */
    public PntlBajaGrupo() {
        initComponents();
        super.setLocationRelativeTo(null);
    }

    @Override
    public java.awt.Image getIconImage() {
        java.awt.Image retValue = java.awt.Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("resources/logo.png"));     
        return retValue;
    }    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlBajaGrupo = new javax.swing.JPanel();
        btnCancelar = new javax.swing.JButton();
        btnConfirmar = new javax.swing.JButton();
        lblMaxAlumnos = new javax.swing.JLabel();
        rdbMañana = new javax.swing.JRadioButton();
        txtMaxAlumnos1 = new javax.swing.JTextField();
        lblFechaInicio = new javax.swing.JLabel();
        cmbCurso = new javax.swing.JComboBox();
        lblFechaFin = new javax.swing.JLabel();
        lblCurso = new javax.swing.JLabel();
        lblBajaGrupo = new javax.swing.JLabel();
        spnFechaFin = new javax.swing.JSpinner();
        rdbTardes = new javax.swing.JRadioButton();
        spnFechaInicio = new javax.swing.JSpinner();
        lblTurnos = new javax.swing.JLabel();
        cmbLaboratorio = new javax.swing.JComboBox();
        lblLaboratorio = new javax.swing.JLabel();
        cmbProfesor = new javax.swing.JComboBox();
        lblProfesor = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Gestión de Grupos. Bajas.");
        setIconImage(getIconImage());
        setName("frmBajaGrupo"); // NOI18N
        setResizable(false);
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));

        btnCancelar.setText("Cancelar");

        btnConfirmar.setText("Confirmar");

        lblMaxAlumnos.setText("Máximo de Alumnos");

        rdbMañana.setSelected(true);
        rdbMañana.setText("Mañana");
        rdbMañana.setEnabled(false);

        txtMaxAlumnos1.setEditable(false);
        txtMaxAlumnos1.setText("20");
        txtMaxAlumnos1.setEnabled(false);

        lblFechaInicio.setText("Fecha de Inicio");

        cmbCurso.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ingenería del Software" }));

        lblFechaFin.setText("Fecha de Finalización");

        lblCurso.setText("Curso");

        lblBajaGrupo.setBackground(new java.awt.Color(51, 255, 204));
        lblBajaGrupo.setText("Baja de Grupo");
        lblBajaGrupo.setOpaque(true);

        spnFechaFin.setModel(new javax.swing.SpinnerDateModel());
        spnFechaFin.setEnabled(false);

        rdbTardes.setText("Tarde");
        rdbTardes.setEnabled(false);

        spnFechaInicio.setModel(new javax.swing.SpinnerDateModel());
        spnFechaInicio.setEnabled(false);

        lblTurnos.setText("Turno");

        cmbLaboratorio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Aula 1" }));
        cmbLaboratorio.setEnabled(false);

        lblLaboratorio.setText("Laboratorio");

        cmbProfesor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Fatos Xhafa" }));
        cmbProfesor.setEnabled(false);

        lblProfesor.setText("Profesor");

        javax.swing.GroupLayout pnlBajaGrupoLayout = new javax.swing.GroupLayout(pnlBajaGrupo);
        pnlBajaGrupo.setLayout(pnlBajaGrupoLayout);
        pnlBajaGrupoLayout.setHorizontalGroup(
            pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblBajaGrupo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cmbCurso, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                        .addComponent(btnConfirmar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnCancelar))
                    .addComponent(cmbProfesor, 0, 450, Short.MAX_VALUE)
                    .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                        .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblCurso)
                            .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtMaxAlumnos1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                                        .addComponent(lblTurnos)
                                        .addGap(18, 18, 18)
                                        .addComponent(rdbMañana))
                                    .addComponent(lblMaxAlumnos))
                                .addGap(18, 18, 18)
                                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblFechaInicio)
                                    .addComponent(rdbTardes)
                                    .addComponent(spnFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(spnFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lblFechaFin)))
                            .addComponent(lblProfesor)
                            .addComponent(lblLaboratorio))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(cmbLaboratorio, 0, 450, Short.MAX_VALUE))
                .addContainerGap())
        );
        pnlBajaGrupoLayout.setVerticalGroup(
            pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBajaGrupoLayout.createSequentialGroup()
                .addComponent(lblBajaGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lblCurso)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cmbCurso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMaxAlumnos)
                    .addComponent(lblFechaInicio)
                    .addComponent(lblFechaFin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMaxAlumnos1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(spnFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(spnFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTurnos)
                    .addComponent(rdbMañana)
                    .addComponent(rdbTardes))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblProfesor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cmbProfesor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblLaboratorio)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cmbLaboratorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
                .addGroup(pnlBajaGrupoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnConfirmar)
                    .addComponent(btnCancelar))
                .addContainerGap())
        );

        getContentPane().add(pnlBajaGrupo);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PntlBajaGrupo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PntlBajaGrupo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PntlBajaGrupo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PntlBajaGrupo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PntlBajaGrupo().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnConfirmar;
    private javax.swing.JComboBox cmbCurso;
    private javax.swing.JComboBox cmbLaboratorio;
    private javax.swing.JComboBox cmbProfesor;
    private javax.swing.JLabel lblBajaGrupo;
    private javax.swing.JLabel lblCurso;
    private javax.swing.JLabel lblFechaFin;
    private javax.swing.JLabel lblFechaInicio;
    private javax.swing.JLabel lblLaboratorio;
    private javax.swing.JLabel lblMaxAlumnos;
    private javax.swing.JLabel lblProfesor;
    private javax.swing.JLabel lblTurnos;
    private javax.swing.JPanel pnlBajaGrupo;
    private javax.swing.JRadioButton rdbMañana;
    private javax.swing.JRadioButton rdbTardes;
    private javax.swing.JSpinner spnFechaFin;
    private javax.swing.JSpinner spnFechaInicio;
    private javax.swing.JTextField txtMaxAlumnos1;
    // End of variables declaration//GEN-END:variables
}
